/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

body {
    color: #333;
    background-color: #f5f5f5;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.btn {
     background-color: #c7000b;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c7000b;
    color: white;
}

/* 顶部导航栏 */
.top-bar {
    background-color: #f5f5f5;
    font-size: 12px;
    height: 36px;
    line-height: 36px;
    border-bottom: 1px solid #eee;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-links a, .user-links a {
    margin-right: 15px;
    color: #666;
}

.top-links a:hover, .user-links a:hover {
    color: #c7000b;
}

.user-links {
    display: flex;
}

/* 主导航栏 */
.main-header {
    background-color: white;
    height: 90px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo {
    margin-right: 50px;
}

.logo img {
    height: 50px;
}

.main-nav ul {
    display: flex;
}

.main-nav li {
    margin-right: 30px;
    position: relative;
}

.main-nav a {
    font-size: 16px;
    font-weight: bold;
    padding: 10px 0;
    display: block;
}

.main-nav a:hover, .main-nav a.active {
    color: #c7000b;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #c7000b;
}

.search-cart {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.search-box {
    display: flex;
    margin-right: 30px;
}

.search-box input {
    width: 220px;
    height: 36px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 18px 0 0 18px;
    outline: none;
}

.search-box button {
    width: 40px;
    height: 36px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 18px 18px 0;
    cursor: pointer;
    color: #666;
}

.search-box button:hover {
    background-color: #eee;
}

.cart {
    position: relative;
}

.cart a {
    display: block;
    color: #666;
    font-size: 20px;
}

.cart a:hover {
    color: #c7000b;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #c7000b;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 新人福利专区样式 */
.new-user-section {
    background-color: #fff;
    padding: 30px 0;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 15px;
}

.section-header h3 {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    position: relative;
    padding-left: 15px;
}

.section-header h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background-color: #c7000b;
}

.more-link {
    color: #999;
    font-size: 14px;
}

.more-link:hover {
    color: #c7000b;
}

.new-user-products {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 15px;
    scrollbar-width: none; /* Firefox */
}

.new-user-products::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.new-user-card {
    min-width: 380px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.new-user-card:hover {
    transform: translateY(-5px);
}

.product-image {
    height: 160px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 15px;
}

.product-info h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: #c7000b;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.original-price {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
    margin-left: 8px;
    font-weight: normal;
}

.new-user-card .btn {
    width: 100%;
    padding: 8px 0;
    background-color: #c7000b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.new-user-card .btn:hover {
    background-color: #a80009;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .new-user-card {
        min-width: 220px;
    }
    
    .product-image {
        height: 120px;
    }
}


/* 注册模态框特定样式 */
#register-modal .modal-content {
    width: 420px;
}

#register-modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

#register-modal .form-group {
    margin-bottom: 20px;
    position: relative;
}

#register-modal input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

#register-modal input:focus {
    border-color: #c7000b;
}

.btn-send-code {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    padding: 0 15px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: #666;
}

.btn-send-code:hover {
    background-color: #eee;
}

.agreement {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
}

.agreement input {
    width: auto;
    margin-right: 5px;
}

.agreement a {
    color: #c7000b;
    margin: 0 3px;
}

.login-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.login-link a {
    color: #c7000b;
}



/* 购物车页面 */
/* 购物车页面滑动效果 */
.cart-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-container {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 80vh;
    max-height: 800px;
    background-color: white;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -2px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

.cart-page.active .cart-overlay {
    opacity: 1;
}

.cart-page.active .cart-container {
    transform: translateY(-100%);
}

.cart-page .container {
    background-color: white;
    padding: 30px;
    border-radius: 4px 4px 0 0;
    min-height: calc(100vh - 60px); /* 确保内容足够高 */
}

.cart-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.cart-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 20px;
}

.cart-page h2 {
    font-size: 24px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

/* 空购物车状态调整 */
.cart-empty {
    text-align: center;
    padding: 50px 0;
    margin-bottom: 80px; /* 为底部结算栏留出空间 */
}

.cart-empty img {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
}

.cart-empty p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cart-items {
    display: none;
}

.cart-items table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.cart-items th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-weight: normal;
    color: #666;
}

.cart-items td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

/* 确保购物车内容不会与底部栏重叠 */
.cart-items {
    padding-bottom: 80px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.cart-item-info h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.quantity-control {
    display: flex;
    align-items: center;
}

.quantity-control button {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
}

.quantity-control input {
    width: 50px;
    height: 30px;
    text-align: center;
    border: 1px solid #ddd;
    border-left: none;
    border-right: none;
    margin: 0 -1px;
}

.remove-item {
    color: #999;
    cursor: pointer;
}

.remove-item:hover {
    color: #c7000b;
}

/* 购物车底部操作栏固定 */
.cart-summary {
    display: flex;
    justify-content: flex-end; /* 右对齐 */
    align-items: center;
    padding: 16px 20px;
    background-color: white;
    border-top: 1px solid #eee;
    position: sticky;
    bottom: 0;
    gap: 20px; /* 添加元素间距 */
}

.total-price {
    font-size: 18px;
    order: 1; /* 调整元素顺序，让价格在前 */
}

.total-price span {
    color: #c7000b;
    font-weight: bold;
    font-size: 24px;
}

.checkout-btn {
    order: 2; /* 按钮在后 */
    padding: 10px 30px;
    background-color: #c7000b;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background-color: #a80009;
}


/* 轮播图 */
.banner {
    height: 500px;
    overflow: hidden;
    position: relative;
}

.slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {       
    position: absolute;
    top: 50%;
    left: 15%;
    transform: translateY(-50%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.slide-content h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 20px;
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.slider-controls button {
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 40px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 4px;
}

.slider-controls button:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background-color: white;
}

/* 快速导航 */
.quick-nav {
    background-color: white;
    padding: 20px 0;
    margin-bottom: 20px;
}

.quick-nav .container {
    display: flex;
    justify-content: space-around;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
    transition: color 0.3s;
}

.quick-link:hover {
    color: #c7000b;
}

.quick-link img {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
}

/* 商品分类 */
/* 手机产品模块样式1 */
.phone-section {
    background-color: #fff;
    padding: 40px 0;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
    padding-left: 15px;
    position: relative;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background-color: #c7000b;
}

/* 主打产品样式 */
.featured-product {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.featured-image {
    flex: 1;
    max-width: 500px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 8px;
}

.featured-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.featured-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-info h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.featured-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.featured-price {
    font-size: 28px;
    color: #c7000b;
    font-weight: bold;
    margin-bottom: 25px;
}

.featured-btn {
    align-self: flex-start;
    padding: 12px 40px;
    background-color: #c7000b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.featured-btn:hover {
    background-color: #a80009;
}

/* 产品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-image {
    height: 220px;
    background-color: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.product-image img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.product-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
    
    /* 多行文本截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 未来标准 */
    display: -webkit-box;
    line-clamp: 2;
    box-orient: vertical;
}

.product-price {
    font-size: 20px;
    color: #c7000b; /* 华为品牌红 */
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-product {
        flex-direction: column;
    }
    
    .featured-image {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .featured-product {
        padding: 20px;
    }
    
    .product-image {
        height: 180px;
    }
}

/* 平板专区样式 */
.tablet-section {
  padding: 40px 0;
  background: linear-gradient(to bottom, #fafafa 0%, #ffffff 100%);
}

.section-title {
  font-size: 28px;
  color: #333;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.section-title .title-icon {
  vertical-align: middle;
  margin-right: 10px;
}

/* 旗舰产品样式 */
.flagship-product {
  display: flex;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 30px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.flagship-image {
  position: relative;
  flex: 1;
  padding: 40px;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flagship-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: #c7000b;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}

.flagship-info {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-title {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
}

.product-desc {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  line-height: 1.6;
}

.price-section {
  margin-bottom: 20px;
}

.current-price {
  font-size: 32px;
  color: #c7000b;
  font-weight: bold;
  margin-right: 10px;
}

.original-price {
  font-size: 18px;
  color: #999;
  text-decoration: line-through;
}

.tag-group {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.product-tag {
  background: #fff2f2;
  color: #c7000b;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 14px;
}

.buy-btn {
  align-self: flex-start;
  padding: 12px 40px;
  background: #c7000b;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
}

.buy-btn:hover {
  background: #a80009;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(199,0,11,0.2);
}

/* 产品矩阵 */
.product-matrix {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.matrix-product {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.matrix-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #c7000b;
}

.matrix-img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 15px;
}

.matrix-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 8px;
}

.matrix-desc {
  font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 40px;
    
    /* 多行文本截断 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    
    /* 未来标准 */
    display: -webkit-box;
    line-clamp: 2;
    box-orient: vertical;
}

.matrix-price {
  font-size: 20px;
    color: #c7000b; /* 华为品牌红 */
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

/* 查看全部 */
.view-all {
  text-align: center;
}

.view-link {
  color: #666;
  font-size: 16px;
  transition: color 0.3s;
}

.view-link:hover {
  color: #c7000b;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .product-matrix {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .flagship-product {
    flex-direction: column;
  }
  
  .product-matrix {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .flagship-image,
  .flagship-info {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .product-matrix {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 24px;
  }
}

/* 商品分类2 */
.product-categories {
    margin-bottom: 40px;
}

.category {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.category h3 {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.products {
    display: flex;
    justify-content: space-between;
}

.product-card {
    width: 100%;
    text-align: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.product-card .price {
    color: #c7000b;
    font-weight: bold;
    margin-bottom: 15px;
}

.product-card .add-to-cart {
    background-color: #f5f5f5;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-card .add-to-cart:hover {
    background-color: #c7000b;
    color: white;
}


/* 促销活动 */
.promotion {
    margin-bottom: 40px;
}

.promotion h2 {
    font-size: 24px;
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 4px solid #c7000b;
}

.promo-cards {
    display: flex;
    justify-content: space-between;
}

.promo-card {
    width: 49%;
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
}

.promo-card img {
    width: 50%;
    height: 250px;
    object-fit: cover;
}

.promo-content {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.promo-content h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.promo-content p {
    margin-bottom: 15px;
    color: #666;
}

.promo-content .time-left {
    color: #c7000b;
    font-weight: bold;
}

/* 页脚 */
.main-footer {
    background-color: #2d2d2d;
    color: #999;
    padding: 40px 0 20px;
}

.footer-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.link-group h4 {
    color: #ccc;
    font-size: 16px;
    margin-bottom: 20px;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group a:hover {
    color: #c7000b;
}

.social-links i {
    margin-right: 5px;
    font-size: 16px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 12px;
}

/* 登录模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 30px;
    width: 400px;
    border-radius: 4px;
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.modal h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
}

.form-group input:focus {
    border-color: #c7000b;
}

.remember {
    display: flex;
    align-items: center;
}

.remember input {
    width: auto;
    margin-right: 5px;
}

.forgot-password {
    margin-left: auto;
    color: #666;
    font-size: 14px;
}

.forgot-password:hover {
    color: #c7000b;
}

.register-link {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.register-link a {
    color: #c7000b;
}

/* 右下角工具栏 */
.toolbar {
  position: fixed;
  right: 30px;
  bottom: 80px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.toolbar-item {
  width: 50px;
  height: 50px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.3s;
  border: 1px solid #eee;
}

.toolbar-item:hover {
  background-color: #f5f5f5;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.toolbar-item i {
  font-size: 20px;
  color: #666;
}

.toolbar-item:hover i {
  color: #c7000b;
}

.tooltip {
  position: absolute;
  right: 60px;
  white-space: nowrap;
  background: #333;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.toolbar-item:hover .tooltip {
  opacity: 1;
}

.tooltip::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid #333;
}

/* 客服浮窗 */
.service-popup {
  position: fixed;
  right: 30px;
  bottom: 180px;
  width: 200px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  z-index: 1000;
  display: none;
}

.popup-header {
  padding: 12px 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popup-header h4 {
  font-size: 16px;
  color: #333;
  margin: 0;
}

.close-popup {
  font-size: 20px;
  cursor: pointer;
  color: #999;
}

.popup-content {
  padding: 10px 0;
}

.service-option {
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.service-option:hover {
  background-color: #f9f9f9;
}

.service-option i {
  color: #c7000b;
  font-size: 16px;
}

.service-option span {
  font-size: 14px;
  color: #333;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .toolbar {
    right: 15px;
    bottom: 60px;
  }
  
  .toolbar-item {
    width: 44px;
    height: 44px;
  }
  
  .service-popup {
    right: 15px;
    width: 180px;
  }
}